
var label:GUIText;

var PlayerPrefab:Transform;
var count:int = 0;
function Update () {
	if(Input.GetButtonDown("Fire1")){
		for(var i:int = 0;i<100;i++){
		var p:Transform = Instantiate(PlayerPrefab);
			p.position = Vector3(Random.value * 20 + 4,Random.value * 4,Random.value * 20 + 4);
		
		}
		count+=100;
		label.text = "数量:"+count;
	}
}